package com.fire.core.mode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * token表
 * </p>
 *
 * @author MIT123
 * @since 2018-04-18
 */
public class TMitUserToken implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * MD（userid+时间戳20170129151044）
     */
    private String token;
    /**
     * 用户号
     */
    private Integer userid;
    /**
     * 渠道id
     */
    private Integer channelid;
    /**
     * 渠道名称
     */
    private String channelname;
    /**
     * 资源类型(1:渠道;2:活动;3:营销活动;4:订单;5:admin平台)
     */
    private Integer resourcetype;
    /**
     * 资源id(渠道号,活动号,营销活动号,订单号,操作号)
     */
    private String resourceid;
    /**
     * 资源名称(渠道名称,活动号,营销活动号,订单号,操作人员名称)
     */
    private String resourcename;
    /**
     * 0,页面登录，1 微信登录
     */
    private Integer logintype;
    /**
     * 失效时间
     */
    private Date expiretime;
    /**
     * aliasname 用户名
     * 
     */
    private String aliasname;
    /**
     * phone 电话
     * 
     */
    private String phone;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getChannelid() {
        return channelid;
    }

    public void setChannelid(Integer channelid) {
        this.channelid = channelid;
    }

    public String getChannelname() {
        return channelname;
    }

    public void setChannelname(String channelname) {
        this.channelname = channelname;
    }

    public Integer getResourcetype() {
        return resourcetype;
    }

    public void setResourcetype(Integer resourcetype) {
        this.resourcetype = resourcetype;
    }

    public String getResourceid() {
        return resourceid;
    }

    public void setResourceid(String resourceid) {
        this.resourceid = resourceid;
    }

    public String getResourcename() {
        return resourcename;
    }

    public void setResourcename(String resourcename) {
        this.resourcename = resourcename;
    }

    public Integer getLogintype() {
        return logintype;
    }

    public void setLogintype(Integer logintype) {
        this.logintype = logintype;
    }

    public Date getExpiretime() {
        return expiretime;
    }

    public void setExpiretime(Date expiretime) {
        this.expiretime = expiretime;
    }

	public String getAliasname() {
		return aliasname;
	}

	public void setAliasname(String aliasname) {
		this.aliasname = aliasname;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Override
	public String toString() {
		return "TMitUserToken [token=" + token + ", userid=" + userid + ", channelid=" + channelid + ", channelname="
				+ channelname + ", resourcetype=" + resourcetype + ", resourceid=" + resourceid + ", resourcename="
				+ resourcename + ", logintype=" + logintype + ", expiretime=" + expiretime + ", aliasname=" + aliasname
				+ ", phone=" + phone + "]";
	}

   
}
